package com.sh.dc.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * <p>
 * 求解任务表
 * </p>
 *
 * @author zhenlan
 * @since 2024-09-19
 */
@Data
  @TableName("t_task_solver")
public class TaskSolver implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

    @TableField("tid")
    private String tid;

    @TableField("name")
    private String name;

    @TableField("status")
    private String status;

    @TableField("solver_id")
    private Integer solverId;

    @TableField("solver_name")
    private String solverName;

    @TableField("resource_cpu")
    private Integer resourceCPU;

    @TableField("resource_mem")
    private Integer resourceMEM;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("create_time")
    private Date createTime;

    @TableField("create_by")
    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("update_time")
    private Date updateTime;

    @TableField("update_by")
    private String updateBy;

    @TableLogic
    @TableField("deleted")
    private Integer deleted;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("end_time")
    private Date endTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField("start_time")
    private Date startTime;

    @TableField("result_addr")
    private String resultAddr;

    @TableField("spec")
    private String spec;
}
